package com.smart.sso.server.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.mvc.model.PersistentObject;

/**
 * 用户操作日志
 * 
 * @author CP
 */
public class Log extends PersistentObject {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2792724434722744776L;
	
	/** 用户ID */
	private Integer userId;
	/** 用户名 */
	private String account;
	/** 用户主机IP */
	private String requestIp;
	/** 操作执行时间 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date operationTime;
	/** 操作ID */
	private Integer operationId;
	/** 操作描述 */
	private String description;
	private String parameter;
	
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	public String getRequestIp() {
		return requestIp;
	}

	public void setRequestIp(String requestIp) {
		this.requestIp = requestIp;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getOperationTime() {
		return operationTime;
	}

	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}
	
	public Integer getOperationId() {
		return this.operationId;
	}

	public void setOperationId(Integer operationId) {
		this.operationId = operationId;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getParameter() {
		return parameter;
	}
	
	public void setParameter(String parameter) {
		this.parameter = parameter;
	}
}
